package com.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 用户
 *
 * @author zjb
 * @since 2025-09-09 14:15
 */
@Data
@TableName("users")
public class Users {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    private String userName;

    private String gender;

    private String phoneNumber;

    private String email;

    private String avatar;

    private String password;

    private String role;

    private String status;

    @TableField(exist = false)  // 非数据库字段
    private String token;
}
